package com.order.center.client;

import com.order.center.client.impl.PayClientImpl;
import com.pay.common.req.NetBankPayReq;
import com.pay.common.resp.NetBankPayRespData;
import com.pay.common.resp.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 支付服务 远程接口
 */
@FeignClient(value = "PAY-CENTER",fallbackFactory = PayClientImpl.class)
public interface IPayClient {


    /**
     * 网银支付接口
     * @param netBankPayReq
     * @return
     */
    @RequestMapping(value = "pay/create",method = RequestMethod.POST)
    public Response<NetBankPayRespData> netBankPay(@RequestBody NetBankPayReq netBankPayReq);


}
